import { secklist} from "../../../request/api"
const state = {
    seckList:[]

}

const getters = {
    getSeck(state){
        return state.seckList
    }

}

const mutations = {
    REQ_GETSECK(state,payload){
      state.seckList = payload
    }


}

const actions = {
    getSeckListActions({commit}){
        secklist()
        .then(res=>{
            // console.log(res);
            if(res.code==200){
                commit("REQ_GETSECK",res.list)
            }
        })
    }

}

export default{
    state,
    getters,
    mutations,
    actions,
    namespaced:true
}